package com.liuym.student;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.io.IOException;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class})
@ComponentScan({"com.liuym"})
@EnableTransactionManagement
public class GradeStudentApplication {
    private static Logger logger = LoggerFactory.getLogger(GradeStudentApplication.class);

    public static void main(String[] args) throws IOException {
        SpringApplication.run(GradeStudentApplication.class);
        logger.info("server is running ...");
    }
}
